package com.example.openai.controller.helloController;

import org.jetbrains.annotations.PropertyKey;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 @RestController
// @EnableGlobalMethodSecurity(prePostEnabled = true)
 public class HelloController {
      @RequestMapping("/hello")
      @PreAuthorize("hasAuthority('system:text:list1111')")
      public String hello(){
          String stio="";
           return "hello";
      }

 }